<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"
	xmlns:f="livcos.org/ns/xslt/function"
	exclude-result-prefixes="f">
	
  <xsl:import href="/livcos.org/web/sys/resolver.xsl"/>
	
	<xsl:variable name="docPath" select="'/livcos.org/web'"/>
	
  <!-- special views -->

	<xsl:template match="uri[@relative = 'playground.html']">
		<access obj="{$basePath}/{@relativeName}" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'playground_new.html']">
		<access obj="/livcos.org/web/doc/view" scope="view">
			<param key="ref" value="playground"/>
		</access>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'playground1.html']">
		<access obj="{$basePath}/AnotherPlayground" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'playground.pdf']">
		<access obj="{$basePath}/pdf/playground" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'LongJob.html']">
		<access obj="{f:find-data-object('unit/LongJob')}" scope="view"/>
  </xsl:template>
  
	<xsl:template match="uri[@relative = 'tmp/folder2/NewDoc.html']">
		<access obj="{$basePath}/style/document" scope="view">
			<param key="ref" value="{@relativeName}"/>
		</access>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'tmp/NewView.html']">
		<access obj="{$basePath}/{@relativeName}" scope="view">
			<param key="ref" value="playground"/>
		</access>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'BasicWebTests.html']">
		<access obj="{$basePath}/{@relativeName}" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'common/test_base.html']">
		<access obj="{$basePath}/{@relativeName}" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'css/styles.css']">
		<access obj="/livcos.org/web/{@relativeName}" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'SvgTest1.html']">
		<access obj="{$basePath}/{@relativeName}" scope="view"/>
	</xsl:template>
	
</xsl:stylesheet>